<?php use_helper('Date') ?>
<?php use_helper('LetsManager') ?>

<?php if ($sf_user->hasFlash('notice')): ?>
  <p class="notice"><?php echo $sf_user->getFlash('notice') ?></p>
<?php endif ?>
<h2>Liste des échanges entre adhérents</h2>

<table class="datalist">
  <thead>
    <tr>
      <th>N°</th>
      <th width="8%">Date</th>
      <th width="15%">Créditeur</th>
      <th width="15%">Débiteur</th>
      
      <th>Description</th>
      <th width="5%">Montant</th>
      <th width="5%">Etat</th>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
  <?php foreach ($echangesPager as $echange): ?>
  <?php include_partial('rowTable', array('echange' => $echange)) ?>
  <?php endforeach ?>
  </tbody>
</table>
  <?php include_partial('global/pager', array('pager' => $echangesPager, 'route' => '@lets_exchange_list', 'params' => array())) ?>
<br />
<table>
  <tr>

    <td><?php echo link_to('Saisir un échange entre 2 adhérents', '@lets_exchangeByManager_new', array('class' => 'blue button')) ?></td>
   <!--  <td><?php //echo link_to('Paiement de masse', '@lets_mass_payment', array('class' => 'blue button')) ?></td>-->
    <td><?php echo link_to('Statistiques des membres', '@lets_membersStats_list', array('class' => 'blue button')) ?></td>
    <td><?php echo link_to("Statistiques de l'association", '@lets_associationStats', array('class' => 'blue button')) ?></td>
  </tr>
</table>
